package com.cip.client.modelo;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * 
 * @author Aleksandras Novikovas
 * @author System Tier
 * @version 1.0
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class EmpresasAsociadasMatriculaRecord extends BaseRecord implements
		Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5864038422909554808L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String id;

	@Persistent
	private Long idEmpresa;

	private Long idMatricula;

public EmpresasAsociadasMatriculaRecord(){
		
	}
	
	public void setIdEmpresa(Long idEmpresa) {
		this.idEmpresa = idEmpresa;
	}

	public Long getIdEmpresa() {
		return idEmpresa;
	}

	public void setIdMatricula(Long idMatricula) {
		this.idMatricula = idMatricula;
	}

	public Long getIdMatricula() {
		return idMatricula;
	}

	@Override
	public void copia(BaseRecord record) {
		setIdEmpresa(((EmpresasAsociadasMatriculaRecord) record).getIdEmpresa());
		setIdMatricula(((EmpresasAsociadasMatriculaRecord) record)
				.getIdMatricula());
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

}
